<?php

require_once(WSB_MODULES_PATH .'sherpa/models/Color.php');

class Sherpa_Model_Colors extends WSB_Model_Collection
{

	/**
	 * @var string
	 */
	protected $_modelClass = 'Sherpa_Model_Color';

	/**
	 * @param string $delim
	 * @return string
	 */
	public function getColorNames($delim = '/')
	{
		$names = '';
		foreach($this AS $i=>$color) {
			$names .= empty($i) ? '' : $delim;
			$names .= $color->getColorName();
		}
		return $names;
	}

}